home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 August / macformat-027.iso / mac / Shareware City / Developers / MDP-80 Folder / std.equ < prev   
Encoding:
Text File  |  1993-11-12  |  1.7 KB  |  41 lines  |  [TEXT/ALFA]

  1. ;               MONITOR EQUATES
  2. ;
  3.  
  4. #equ  kout           0200        ; character out
  5. #equ  cstb           0201        ; character out strobe
  6. #equ  kbds           0202        ; keyboard strobe
  7. #equ  keyb           0203        ; keyboard character
  8. #equ  stak           0100        ; start of stack
  9. #equ  cold           fffd        ; CPU cold start
  10. #equ  break          fffa        ; BRK vector
  11. #equ  text           0300        ; text input buffer
  12. #equ  _mon           f800        ; monitor start
  13. #equ  version        f830        ; version number
  14. #equ  _mon1            f832        ; warm start
  15. #equ  _brk            f851        ; BRK routine
  16. #equ  _cout            f876        ; character out
  17. #equ  _keyin        f87d        ; read a character
  18. #equ  _input         f884        ; input a line * prompt
  19. #equ  _input1        f889        ; input a line no prompt
  20. #equ  _print        f8d2        ; print null string in AX
  21. #equ  print1        f8d6        ; print string in $06 & $07
  22. #equ  _printHex        f8e9        ; print A as hex number
  23. #equ  _printWord    f920        ; print AX as hex number
  24. #equ  _upper        f928        ; convert string in AX to uppercase
  25. #equ  _upper1        f92c        ; convert string in $06 & $07 to uppercase
  26. #equ  _killB        f952        ; remove blanks from string in AX
  27. #equ  _killB1        f956        ; remove blanks from string in $06 & $07
  28. #equ  _length        f989        ; return in X the length of string in $06 $07
  29. #equ  _makeHex        f99b        ; make character in A into hex digit
  30. #equ  _makeByte        f9c3        ; make two chars in string @ $06 $07 into byte
  31.                                 ; and store it in $04
  32. #equ  _number        f9dd        ; converts the null terminated string in AX 
  33.                                 ; into an address and places it in the monitor
  34.                                 ; scratch locations ($01 & $02) stores result 
  35.                                 ; of conversion in $05 ( 0 = error, 1 = okay )
  36. #equ  _number1        f9e1        ; same for string in $06 $07
  37. #equ  _add16        fa50        ; add $01 $02 to $0A $0B, result in $01 $02
  38. #equ  _reg            ff7f        ; output current register values
  39. #equ  _blanks        ffd8        ; output spaces, count in X
  40.  
  41.